//
//  RequestHelper.h
//  NMC_iOS
//
//  Created by Nong Nghia on 7/30/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
//NSString *const HTTPMETHOD[]={
//    @"GET",
//    @"POST",
//    @"PUT",
//    @"DELETE"
//};

typedef enum {
    HttpMethodGet,
    HttpMethodPost,
    HttpMethodPut,
    HttpMethodDelete
}HttpMethod;

@interface RequestHelper : NSObject


+ (void)requestWithURL:(NSURL*)_URL
                method:(HttpMethod)_method
                params:(NSDictionary*)_params
               success:(void (^)(id result))success
               failure:(void (^)(NSError *error))failure;


@end
